﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace XFFSM
{
    public class FSMStateNode
    {

        public FSMStateNodeData data;
        public FSMController controller;

        public FSMStateNode(FSMStateNodeData data,FSMController controller) {
            this.data = data;
            this.controller = controller;
        }

        public void OnEnter() {
            FSMController.executeState.OnEnter(this);
        }

        public void OnExit() {
            FSMController.executeState.OnExit(this);
        }

        public void OnUpdate() {
            FSMController.executeState.OnUpdate(this);
        }

        public void OnFixedUpdate() {
            FSMController.executeState.OnFixedUpdate(this);
        }

        public void OnLateUpdate() {
            FSMController.executeState.OnLateUpdate(this);
        }


    }

}

